home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / sun / volume2 / contool3.0 / patch01 < prev    next >
Encoding:
Internet Message Format  |  1990-10-23  |  11.7 KB

  1. Path: uunet!wuarchive!usc!apple!rutgers!aramis.rutgers.edu!mcgrew
  2. From: mcgrew@aramis.rutgers.edu (Charles Mcgrew)
  3. Newsgroups: comp.sources.sun
  4. Subject: v02i026:  Contool 3.0 Patch 1
  5. Message-ID: <Oct.23.18.11.32.1990.15913@aramis.rutgers.edu>
  6. Date: 23 Oct 90 22:11:33 GMT
  7. Organization: Rutgers Univ., New Brunswick, N.J.
  8. Lines: 353
  9. Approved: mcgrew@aramis.rutgers.edu
  10.  
  11. Submitted-by: chuck@melmac.harris-atd.com (Chuck Musciano)
  12. Posting-number: Volume 2, Issue 26
  13. Archive-name: contool3.0/patch01
  14.  
  15.  
  16.      This is patch 1 for contool 3.0, my alternate console tool for
  17. workstations running X Windows.
  18.  
  19.      This patch fixes a few minor bugs, including:
  20.      
  21.      *    Dialog boxes now open and close correctly under window managers
  22.          other than olwm.
  23.          
  24.      *    Handling of custom icons is now fixed.
  25.      
  26.      *    Filter files originally created for contool 1.0 now work with
  27.          version 3.0.
  28.      
  29.      *    The "clean" target in the Makefile is fixed.
  30.     
  31. Also, this patch creates an Imakefile for use with xmkmf and imake.
  32.  
  33.  
  34. Chuck Musciano                ARPA  : chuck@trantor.harris-atd.com
  35. Harris Corporation             Usenet: ...!uunet!x102a!trantor!chuck
  36. PO Box 37, MS 3A/1912            AT&T  : (407) 727-6131
  37. Melbourne, FL 32902            FAX   : (407) 729-2537
  38.  
  39. A good newspaper is never good enough,
  40.     but a lousy newspaper is a joy forever.        -- Garrison Keillor
  41.  
  42. #! /bin/sh
  43. # This is a shell archive.  Remove anything before this line, then unpack
  44. # it by saving it into a file and typing "sh file".  To overwrite existing
  45. # files, type "sh file -c".  You can also feed this as standard input via
  46. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  47. # will see the following message at the end:
  48. #        "End of shell archive."
  49. # Contents:  patch
  50. # Wrapped by chuck@melmac on Thu Oct 18 10:53:38 1990
  51. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  52. if test -f 'patch' -a "${1}" != "-c" ; then 
  53.   echo shar: Will not clobber existing file \"'patch'\"
  54. else
  55. echo shar: Extracting \"'patch'\" \(9176 characters\)
  56. sed "s/^X//" >'patch' <<'END_OF_FILE'
  57. X*** Makefile.orig    Thu Oct 18 10:48:43 1990
  58. X--- Makefile    Fri Aug 31 14:15:32 1990
  59. X***************
  60. X*** 46,52 ****
  61. X      cp -p contool.man $(MAN)/contool.$(MANEXT)
  62. X  
  63. X  clean:
  64. X!     rm -f *~ $(OFILES) contool core
  65. X  
  66. X  #dependencies
  67. X  
  68. X--- 46,52 ----
  69. X      cp -p contool.man $(MAN)/contool.$(MANEXT)
  70. X  
  71. X  clean:
  72. X!     rm -f *~ *.o contool core
  73. X  
  74. X  #dependencies
  75. X  
  76. X*** Imakefile.orig    Thu Oct 18 10:48:45 1990
  77. X--- Imakefile    Thu Oct 18 10:27:16 1990
  78. X***************
  79. X*** 0 ****
  80. X--- 1,22 ----
  81. X+ OPENWINHOME    = /usr/openwin
  82. X+ 
  83. X+ HELPDIR        = /usr/local/lib/help
  84. X+ 
  85. X+ LOCAL_LIBRARIES = -lxview -lolgx $(XLIB)
  86. X+ 
  87. X+ LDOPTIONS    = -L$(OPENWINHOME)/lib
  88. X+ 
  89. X+ CFLAGS        = -O -I$(OPENWINHOME)/include
  90. X+ 
  91. X+ SRCS        = contool.c contool_ui.c error.c expand.c filters.c \
  92. X+           load.c load_icon.c logging.c misc.c parse.y props.c \
  93. X+           regexp.c store.c window_misc.c
  94. X+ 
  95. X+ OBJS        = contool.o contool_ui.o error.o expand.o filters.o \
  96. X+           load.o load_icon.o logging.o misc.o parse.o props.o \
  97. X+           regexp.o store.o window_misc.o
  98. X+ 
  99. X+ ComplexProgramTarget(contool)
  100. X+ 
  101. X+ install:: install.man
  102. X+     $(INSTALL) -c $(INSTMANFLAGS) contool.info $(HELPDIR)/contool.info
  103. X*** README.orig    Thu Oct 18 10:48:46 1990
  104. X--- README    Thu Oct 18 10:22:55 1990
  105. X***************
  106. X*** 171,173 ****
  107. X--- 171,180 ----
  108. X                  Reworked console overflow handling,
  109. X                     courtesy of Matt Cohen
  110. X                     (sysnmc@magic706.chron.com).
  111. X+     3.0a            Allowed reading of 1.0 filter files.
  112. X+                 Fixed handling of custom default icon
  113. X+                    when blinking stops.
  114. X+                 Tweaked Makefile slightly.
  115. X+                 Fixed handling of dialog boxes under
  116. X+                    window managers other than olwm.
  117. X+                 Add Imakefile.
  118. X*** contool.man.orig    Thu Oct 18 10:48:47 1990
  119. X--- contool.man    Mon Oct  1 14:35:10 1990
  120. X***************
  121. X*** 16,22 ****
  122. X  \f2Contool\fP must be run under either Open Windows or X Windows.
  123. X  It accepts the standard Open Windows command line options.
  124. X  .SH OPTIONS
  125. X! .IP "\fB\\(hyf\fP \fIfile\fP"
  126. X  specifies an alternate configuration file.  \f2Contool\fP normally
  127. X  reads its configuration information from ~/.contool.
  128. X  .IP "\fB\\(hyl\fP"
  129. X--- 16,22 ----
  130. X  \f2Contool\fP must be run under either Open Windows or X Windows.
  131. X  It accepts the standard Open Windows command line options.
  132. X  .SH OPTIONS
  133. X! .IP "\fB\\(hyc\fP \fIfile\fP"
  134. X  specifies an alternate configuration file.  \f2Contool\fP normally
  135. X  reads its configuration information from ~/.contool.
  136. X  .IP "\fB\\(hyl\fP"
  137. X***************
  138. X*** 46,52 ****
  139. X  filters from the file.
  140. X  .IP ""
  141. X  The text field contains the path of the configuration file.  By default,
  142. X! this is either ~/.contool, or the value of the \fB-f\fP option (above).
  143. X  This text field provides file name completion, like \f2csh\fP(1), by typing
  144. X  a space or carriage return.
  145. X  .IP ""
  146. X--- 46,52 ----
  147. X  filters from the file.
  148. X  .IP ""
  149. X  The text field contains the path of the configuration file.  By default,
  150. X! this is either ~/.contool, or the value of the \fB-c\fP option (above).
  151. X  This text field provides file name completion, like \f2csh\fP(1), by typing
  152. X  a space or carriage return.
  153. X  .IP ""
  154. X***************
  155. X*** 56,64 ****
  156. X  discarded.  If \f2contool\fP was in the middle of filtering a multi-line message,
  157. X  that filtering action is terminated.
  158. X  .IP ""
  159. X! \f2Contool\fP can read files created by versions 2.0, 2.1, 2.2, and 3.0 of
  160. X! \f2contool\fP.  Files used by version 1.0 will need to be manually converted
  161. X! by first reading and writing them with any 2.x release of \f2contool\fP.
  162. X  .IP "\fBFile: Save Configuration...\fP"
  163. X  is analogous to the \fBLoad Configuration\fP operation, bringing up a dialog
  164. X  box containing a non-exclusive setting, a text field, and a \fBSave\fP
  165. X--- 56,64 ----
  166. X  discarded.  If \f2contool\fP was in the middle of filtering a multi-line message,
  167. X  that filtering action is terminated.
  168. X  .IP ""
  169. X! \f2Contool\fP can read files created by all previous versions of
  170. X! \f2contool\fP.  Files written by \f2contool\fP cannot be read by any previous
  171. X! version.
  172. X  .IP "\fBFile: Save Configuration...\fP"
  173. X  is analogous to the \fBLoad Configuration\fP operation, bringing up a dialog
  174. X  box containing a non-exclusive setting, a text field, and a \fBSave\fP
  175. X*** contool.c.orig    Thu Oct 18 10:48:50 1990
  176. X--- contool.c    Thu Oct 11 10:38:59 1990
  177. X***************
  178. X*** 365,371 ****
  179. X      event_in_progress = TRUE;
  180. X      if (event_action(event) == ACTION_OPEN && blinking) {
  181. X         notify_set_itimer_func(contool_base->base, blink_proc, ITIMER_REAL, NULL, NULL);
  182. X!        change_icon(good, good = default_good_icon);
  183. X         blinking = FALSE;
  184. X         }
  185. X      event_in_progress = FALSE;
  186. X--- 365,371 ----
  187. X      event_in_progress = TRUE;
  188. X      if (event_action(event) == ACTION_OPEN && blinking) {
  189. X         notify_set_itimer_func(contool_base->base, blink_proc, ITIMER_REAL, NULL, NULL);
  190. X!        change_icon(good, good == default_good_icon);
  191. X         blinking = FALSE;
  192. X         }
  193. X      event_in_progress = FALSE;
  194. X*** contool_ui.c.orig    Thu Oct 18 10:48:52 1990
  195. X--- contool_ui.c    Thu Oct 18 10:40:18 1990
  196. X***************
  197. X*** 307,313 ****
  198. X          XV_KEY_DATA, INSTANCE, ip,
  199. X          XV_WIDTH, 575,
  200. X          XV_HEIGHT, 246,
  201. X!         XV_LABEL, "Contool 3.0",
  202. X          FRAME_CLOSED, FALSE,
  203. X          FRAME_SHOW_FOOTER, TRUE,
  204. X          FRAME_SHOW_RESIZE_CORNER, TRUE,
  205. X--- 307,313 ----
  206. X          XV_KEY_DATA, INSTANCE, ip,
  207. X          XV_WIDTH, 575,
  208. X          XV_HEIGHT, 246,
  209. X!         XV_LABEL, "Contool 3.0a",
  210. X          FRAME_CLOSED, FALSE,
  211. X          FRAME_SHOW_FOOTER, TRUE,
  212. X          FRAME_SHOW_RESIZE_CORNER, TRUE,
  213. X*** lex.c.orig    Thu Oct 18 10:48:58 1990
  214. X--- lex.c    Fri Aug 31 13:58:54 1990
  215. X***************
  216. X*** 49,54 ****
  217. X--- 49,55 ----
  218. X                   {"nostamp",              NOSTAMP},
  219. X                   {"open",                 OPEN},
  220. X                   {"print",                PRINT},
  221. X+                  {"quiet",                QUIET},
  222. X                   {"save",                 SAVE},
  223. X                   {"stamp",                STAMP},
  224. X                   {"timestamp",            TIMESTAMP},
  225. X*** parse.y.orig    Thu Oct 18 10:49:03 1990
  226. X--- parse.y    Fri Aug 31 14:08:54 1990
  227. X***************
  228. X*** 53,63 ****
  229. X  
  230. X  %token        BEEP CHECK_ICON COMMAND COMMENT DEFAULTS DELETE DISPLAY FILTERS
  231. X          FLASH FLASH_ICON GOOD_ICON IGNORE LOG_BEFORE_FILTERING LOG_FILE
  232. X!         MATCH NO NOFLASH NOOPEN NOSTAMP OPEN PRINT SAVE STAMP TIMESTAMP TO YES
  233. X  
  234. X  %type    <ival>    beep flash old_flash old_open old_stamp open stamp yes_no
  235. X  %type    <cpval>    command old_end_string string
  236. X! %type    <fval>    filter filter_list old_filter old_filter_list old_ignore old_save
  237. X  
  238. X  %%
  239. X  
  240. X--- 53,63 ----
  241. X  
  242. X  %token        BEEP CHECK_ICON COMMAND COMMENT DEFAULTS DELETE DISPLAY FILTERS
  243. X          FLASH FLASH_ICON GOOD_ICON IGNORE LOG_BEFORE_FILTERING LOG_FILE
  244. X!         MATCH NO NOFLASH NOOPEN NOSTAMP OPEN PRINT QUIET SAVE STAMP TIMESTAMP TO YES
  245. X  
  246. X  %type    <ival>    beep flash old_flash old_open old_stamp open stamp yes_no
  247. X  %type    <cpval>    command old_end_string string
  248. X! %type    <fval>    filter filter_list old_filter old_filter_list old_ignore old_quiet old_save
  249. X  
  250. X  %%
  251. X  
  252. X***************
  253. X*** 86,91 ****
  254. X--- 86,92 ----
  255. X  
  256. X  old_filter    :    old_save
  257. X          |    old_ignore
  258. X+         |    old_quiet
  259. X          ;
  260. X  
  261. X  old_save    :    SAVE beep old_flash old_open old_stamp STRING old_end_string
  262. X***************
  263. X*** 121,126 ****
  264. X--- 122,150 ----
  265. X                        f->flash    = FALSE;
  266. X                        f->open     = FALSE;
  267. X                        f->stamp    = FALSE;
  268. X+                       f->start    = $2;
  269. X+                       f->stop     = $3;
  270. X+                       f->start_re = NULL;
  271. X+                       f->stop_re  = NULL;
  272. X+                       f->command  = NULL;
  273. X+                       f->comment  = NULL;
  274. X+                       f->next     = NULL;
  275. X+                       if (msg = compile_exp(f, f->start, f->stop))
  276. X+                          yyerror(msg);
  277. X+                       $$ = f;
  278. X+                     }
  279. X+         ;
  280. X+ 
  281. X+ old_quiet    :    QUIET STRING old_end_string
  282. X+                     { Filter    *f;
  283. X+                       char        *msg;
  284. X+                     
  285. X+                       f = (Filter *) malloc(sizeof(Filter));
  286. X+                       f->save     = TRUE;
  287. X+                       f->beep     = 0;
  288. X+                       f->flash    = FALSE;
  289. X+                       f->open     = FALSE;
  290. X+                       f->stamp    = TRUE;
  291. X                        f->start    = $2;
  292. X                        f->stop     = $3;
  293. X                        f->start_re = NULL;
  294. X*** patchlevel.h.orig    Thu Oct 18 10:49:04 1990
  295. X--- patchlevel.h    Tue Sep 18 15:06:44 1990
  296. X***************
  297. X*** 3,6 ****
  298. X--- 3,8 ----
  299. X  /*    Patch        Comments                    */
  300. X  /*      0        Initial release for XView            */
  301. X  /*                                    */
  302. X+ /*      1        Bug fixes; see README for details        */
  303. X+ /*                                    */
  304. X  /************************************************************************/
  305. X*** window_misc.c.orig    Thu Oct 18 10:49:09 1990
  306. X--- window_misc.c    Thu Oct 18 09:48:19 1990
  307. X***************
  308. X*** 28,33 ****
  309. X--- 28,34 ----
  310. X  #include    <xview/xview.h>
  311. X  #include    <xview/panel.h>
  312. X  #include    <xview/xv_xrect.h>
  313. X+ #include    <X11/Xutil.h>
  314. X  
  315. X  #include    "manifest.h"
  316. X  #include    "contool_ui.h"
  317. X***************
  318. X*** 80,86 ****
  319. X  Xv_opaque    base;
  320. X  Xv_opaque    dialog;
  321. X  
  322. X! {    Rect    br, dr, sr;
  323. X  
  324. X      sr = *((Rect *) xv_get(base, WIN_SCREEN_RECT));
  325. X      frame_get_rect(base, &br);
  326. X--- 81,88 ----
  327. X  Xv_opaque    base;
  328. X  Xv_opaque    dialog;
  329. X  
  330. X! {    Rect        br, dr, sr;
  331. X!     XWMHints    *hints;
  332. X  
  333. X      sr = *((Rect *) xv_get(base, WIN_SCREEN_RECT));
  334. X      frame_get_rect(base, &br);
  335. X***************
  336. X*** 98,101 ****
  337. X--- 100,109 ----
  338. X         dr.r_top = br.r_top + 32;
  339. X         }
  340. X      frame_set_rect(dialog, &dr);
  341. X+ 
  342. X+     hints = XGetWMHints(xv_get(dialog, XV_DISPLAY), xv_get(dialog, XV_XID));
  343. X+     hints->flags |= StateHint;
  344. X+     hints->initial_state = NormalState;
  345. X+     XSetWMHints(xv_get(dialog, XV_DISPLAY), xv_get(dialog, XV_XID), hints);
  346. X+     XFree(hints);
  347. X  }
  348. END_OF_FILE
  349. if test 9176 -ne `wc -c <'patch'`; then
  350.     echo shar: \"'patch'\" unpacked with wrong size!
  351. fi
  352. # end of 'patch'
  353. fi
  354. echo shar: End of shell archive.
  355. exit 0
  356.  
  357. Chuck Musciano                ARPA  : chuck@trantor.harris-atd.com
  358. Harris Corporation             Usenet: ...!uunet!x102a!trantor!chuck
  359. PO Box 37, MS 3A/1912            AT&T  : (407) 727-6131
  360. Melbourne, FL 32902            FAX   : (407) 729-2537
  361.  
  362. A good newspaper is never good enough,
  363.     but a lousy newspaper is a joy forever.        -- Garrison Keillor
  364.